﻿<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link href="../../../../css/default.css" rel="stylesheet" />
</head>
<body>
  
    <div template="k_grid_view" ng-columns="{{MyColumns}}" source="data" dock="full" selected-row="$parent.$selectedRow" ></div>
        
        <script>
            var scope = this;
            scope.$$$ready(function () {
                WS.$call("Roles/GetListOfRoles", undefined, function (res) {
                    scope.data = res;
                    scope.$apply();
                });
            })
            scope.doEditRole = function (item) {
                scope.$parent.currentRole = item;
                scope.$parent.$view.loadView("/views/ThietLapHeThong/PhanQuyen/NhmNguoiDung.ChiTiet.html");

            };
            scope.MyColumns = [{
                field: "RoleID",// create a column bound to the "name" field
                title: scope.$$$res('Mã nhóm'), // set its title to "Name"
                
            }, {
                field: "RoleName",// create a column bound to the "name" field
                title: scope.$$$res('Tên nhóm') // set its title to "Name"
            },
             {
                field: "CreateBy",// create a column bound to the "name" field
                title: scope.$$$res('Tạo bởi') // set its title to "Name"
             },
             {
                 field: "CreateOn",// create a column bound to the "name" field
                 title: scope.$$$res('Ngày tạo') // set its title to "Name"
             }];
        </script>

</body>
</html>